package learn.java.liuyayioschina;
public class Cat extends Animal implements Pet
{
	private String name;
	public Cat(String name)
	{
		super(4);
		this.name=name;
	}
	public Cat()
	{
		this("");
	}
	public String getName()
	{
		System.out.println(name);
		return name;
	}
	public void setName(String name)
	{
		this.name=name;
	}
public void eat()
{
	System.out.println("cats eat mouse");
}
public void play()
{
	System.out.println("cats like playing with their tails");
}
}
